<script>
import { getShowImage } from "@/utils"

export default {
  name: "contractKefu",
  methods: {
    getShowImage,
    open() {
      this.$refs.popup.open()
    },
  },
  props: {
    details: {
      type: Object,
      default: () => {
        return {}
      },
    },
  },
}
</script>

<template>
  <!--		联系客服二维码报名弹框-->
  <uni-popup type="center" ref="popup">
    <view class="popup-content">
      <image class="kefu-qr-code" :src="getShowImage(details.contactQrcode)" :show-menu-by-longpress="true" mode="widthFix"></image>
      <view
        class="confirm-btn"
        @click="
          () => {
            $refs.popup.close()
          }
        "
        >我已扫描二维码</view
      >
    </view>
  </uni-popup>
</template>

<style scoped lang="scss">
.popup-content {
  border-radius: 30rpx;
  background-color: #fff;
  width: 70vw;
  > .kefu-qr-code {
    width: 100%;
  }
  > .confirm-btn {
    padding: 20rpx 0;
    text-align: center;
    font-size: 32rpx;
    color: #ff6219;
  }
}
</style>
